WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct C

Total Complexity 109
Dependencies 12
Dependents 1
Total lines 911
Lines of code 395
Logical lines of code 226
Comment lines 339
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
process_payment()
B
40 18 52
do_credit_card_transaction()
A
42 13 48
validate_credit_card_expiration_date()
A
54 10 19
validate_fields()
A
51 9 24
update_transaction_payment_method()
A
47 8 36
do_add_payment_method_transaction()
A
46 7 39
validate_credit_card_fields()
S
56 7 16
get_order()
S
51 6 24
validate_credit_card_account_number()
S
53 6 22
validate_csc()
S
57 6 17
get_order_for_add_payment_method()
S
45 4 42
add_add_payment_method_customer_data()
S
59 5 13
add_payment_method()
S
54 4 20
add_add_payment_method_transaction_data()
S
58 3 14
get_add_payment_method_payment_gateway_transaction_data()
S
82 1 3
is_direct_gateway()
S
82 1 3
transaction_forced()
S
82 1 3